package com.mbl.base.modular.mall.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mbl.base.modular.mall.entity.OrderGoods;
import com.mbl.base.modular.mall.mapper.OrderGoodsMapper;
import com.mbl.base.modular.mall.service.IOrderGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 订单商品表 服务实现类
 * </p>
 *
 * @author lwj
 * @since 2020-03-22
 */
@Service
public class OrderGoodsServiceImpl extends ServiceImpl<OrderGoodsMapper, OrderGoods> implements IOrderGoodsService {

    @Override
    public List<OrderGoods> queryByOrderid(Long orderId) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("order_id", orderId);
        return list(queryWrapper);
    }
}
